/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"B0F03C34-DB26-4721-A85A-70CF0CDD2B1F"}
 */
function onShow(firstShow, event) {

	var query 	= 'select proveedor_id from proveedor '+ 
					'where (plancta_id_gastos is null or '+
	 				'regimen_ganancias_id is null or '+
	 				'inscripto_ganancias is null or '+
	 				'retiene_ganancias is null) and ' +
	 				'es_fletero = ?'
	var args 	= new Array
	args[0] = globals.gproveedor_o_fletero 
	var max 	= -1
	
	var $ds 	= databaseManager.getDataSetByQuery('infocom',query,args,max)
	
	controller.loadRecords($ds)
	
}
